Default Video Player State
Implementation of VideoPlayerState for WebAssembly/JavaScript platform. Manages the state of a video player including playback controls, media information, and error handling.
Properties
Callback to apply playback speed changes to the underlying media player
Callback to apply volume changes to the underlying media player
Returns the total duration of the video as a formatted string.
Callback function to force recalculation of the HTML view position. This is set by the VideoPlayerSurface when the HTML view is created.
Returns the current playback position as a formatted string.
Provides the audio level for the right channel as a percentage.
Denotes whether the user is manually adjusting the playback position.
Functions
Clears any error state.
Disables subtitles by clearing the current track and setting subtitlesEnabled to false.
Forces recalculation of the HTML view position. This is useful when the layout changes and the HTML view needs to be repositioned.
Callback for time update events from the media player.
Opens a media file.
Opens a media source from the given URI.
Selects a subtitle track and enables subtitles.
Sets the error state.
Toggles the fullscreen state of the video player
Updates the audio level indicators.
Updates the position and duration display.